FROM openjdk:8-slim
WORKDIR /usr/local
COPY my-devops.jar .
CMD java -jar my-devops.jar
#END




#FROM openjdk:8-jre-alpine
#LABEL maintainer="travelerly@outlook.com"

# 复制打好的 jar 包
#COPY target/*.jar /app.jar
#RUN apk add -U tzdata; \
#    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
#    echo 'Asia/Shanghai' >/etc/timezone; \
#    touch /app.jar;

#ENV JAVA_OPTS=""

#ENV PARAMS=""

#EXPOSE 8080

#ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTS -jar /app.jar $PARAMS" ]